package reporting;

import util.*;

/**
 * @author Roman I.
 *
 */
public class TemplateReport implements XReport {
	
	private FileWork fw = FileWork.getInstance();
	private TestConfiguration tc = TestConfiguration.getInstance();
	private String typeReport;
	private String name;
    private String logName;
	private String logPath;
	
	public TemplateReport(String name) {
		this.name = name;
	}
	
	/**
	 * @return the typeReport
	 */
	public String getTypeReport() {
		return typeReport;
	}
	
	/**
	 * @param typeReport the typeReport to set
	 */
	public void setTypeReport(String typeReport) {
		this.typeReport = typeReport;
	}
	
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}	
	
	/**
	 * @return the logName
	 */
	public String getLogName() {
		return logName;
	}
	
	/**
	 * @param logName the logName to set
	 */
	public void setLogName(String logName) {
		this.logName = logName;
	}
	
	/**
	 * @return the logPath
	 */
	public String getLogPath() {
		return logPath;
	}
	
	/**
	 * @param logPath the logPath to set
	 */
	public void setLogPath(String logPath) {
		this.logPath = logPath;
	}
		
	public void initialize() {}
	
	/** Report all information from step of TC to a report
	 * @param step Step of testcase
	 */
	public void reportStep(TCStep step) {}
	/**
	 * @param objMsg
	 */
	@Deprecated
	public void report(Message objMsg) {
		String txt;
		txt = objMsg.getMessageType() + "\t" + objMsg.getStatus() + "\t";
		txt = txt + "\t" + objMsg.getHeader() + "\t" + objMsg.getDescription();
		txt = txt + "\t" + objMsg.getErrorId();
		
    	System.out.println(txt);
	}

	/**
	 * @param name the name to set
	 */
	private void setName(String name) {
		this.name = name;
	}
	
	/**
	 * @param inputTxt
	 * @return
	 */
	@Deprecated
	private String formatText(String inputTxt) {
		return inputTxt;
	}
	
	/**
	 * @param inputTxt
	 * @return
	 */
	@Deprecated
	private String unrormatText(String inputTxt) {
		return inputTxt;
	}
	
	/**
	 * @param objMsg
	 * @return
	 */
	@Deprecated
	private String formatMsgHeader(Message objMsg) {
		String buffer = "Some text";
		return buffer;
	}
	
	/**
	 * @param objMsg
	 * @return
	 */
	@Deprecated
	private String formatMsgDescription(Message objMsg) {
		String buffer = "Some text";
		return buffer;
	}

}
